using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace dotnet_ef_admin.Src.Models;

[Table("user_role")]
public class UsersOnRoles {
    [Key] [Column(Order = 0)] public int UserId { get; set; }

    public User? User { get; set; }

    [Key] [Column(Order = 1)] public int RoleId { get; set; }

    public Role? Role { get; set; }
}